package com.tjnu.baiyi.entity;

import java.io.Serializable;

/**
 * 实现Comparable接口，通过compareTo方法进行排序
 * 
 * @version1
 * @author DELL
 * 
 */
public class TbPhoto implements Serializable {
	private static final long serialVersionUID = 3324514052181765400L;
	private Integer photoId;
	private TbAlbum tbAlbum;
	private String photoName;//已经上传文件的名称
	private String photo;//存放已上传的相片的路径

	// Constructors

	/** default constructor */
	public TbPhoto() {
	}

	/** full constructor */
	public TbPhoto(TbAlbum tbAlbum, String photoName, String photo) {
		this.tbAlbum = tbAlbum;
		this.photoName = photoName;
		this.photo = photo;
	}

	// Property accessors

	public Integer getPhotoId() {
		return this.photoId;
	}

	public void setPhotoId(Integer photoId) {
		this.photoId = photoId;
	}

	public TbAlbum getTbAlbum() {
		return this.tbAlbum;
	}

	public void setTbAlbum(TbAlbum tbAlbum) {
		this.tbAlbum = tbAlbum;
	}

	public String getPhotoName() {
		return this.photoName;
	}

	public void setPhotoName(String photoName) {
		this.photoName = photoName;
	}

	public String getPhoto() {
		return this.photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

}